<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        li{
            list-style: none;
        }
        a{
            text-decoration: none;
            color: gray;
            font-size: 12px;
        }
        .box1{
            width: 1100px;
            margin: auto;
            padding: 30px;
            border-radius: 100px 0 100px 0;
            background-color: #f4f5f7;
        }
        .box2{
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        ul{
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }
        li{
            width: 192px;
            height: 220px;
            background-color: white;
            border-radius: 0 0 10px 10px;
            transition: all 0.4s;
            cursor: pointer;
        }
        li:hover{
            transform: translateY(-10px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        img{
           width: 100%;
        }
        .box4{
           padding: 20px;
           height: 100px;
           display: flex;
           flex-direction: column;
           justify-content: space-between;
        }
        .box5{
            font-size: 12px;
        }
        .box5 span{
            color: orange;
        }
    </style>
</head>
<body>
    <div class="box1">
        <div class="box2">
           <h3>刘堉源</h3>
           <a href="#">查看更多</a>
        </div>
        <div class="box3">
            <ul>
                <script>
                    let data = [
                        {
                            src: 'images/course01.png',
                            title: 'Think PHP 5.0 博客系统实战项目演练',
                            num: 1125
                        },
                        {
                            src: 'images/course02.png',
                            title: 'Android 网络动态图片加载实战',
                            num: 357
                        },
                        {
                            src: 'images/course03.png',
                            title: 'Angular2 大前端商城实战项目演练',
                            num: 22250
                        },
                        {
                            src: 'images/course04.png',
                            title: 'Android APP 实战项目演练',
                            num: 389
                        },
                        {
                            src: 'images/course05.png',
                            title: 'UGUI 源码深度分析案例',
                            num: 124
                        },
                        {
                            src: 'images/course06.png',
                            title: 'Kami2首页界面切换效果实战演练',
                            num: 432
                        },
                        {
                            src: 'images/course07.png',
                            title: 'UNITY 从入门到精通实战案例',
                            num: 888
                        },
                        {
                            src: 'images/course08.png',
                            title: 'Cocos 深度学习你不会错过的实战',
                            num: 590
                        },
                    ]
                    for(let i=0;i<data.length;i++){
                        document.write(`
                    <li>
                        <img src="${data[i].src}" alt="">
                        <div class="box4">
                            <h5>${data[i].title}</h5>
                            <div class="box5">
                                <span>高级</span>·<span>${data[i].num}</span>人在学习
                            </div>
                        </div>
                    </li>
                    `)
                    } 
                </script>
                    
            </ul>
        </div>
    </div>
</body>
</html>